﻿<%@ Page Language="C#" AutoEventWireup="true" Title="未审核补助" MasterPageFile="~/Master/MasterPage_New.master"
    CodeBehind="hospitalPending.aspx.cs" Inherits="HZ.Supervise.Web.Secondphase.ReportHospital.hospitalPending" %>

<%@ Register Src="~/Common/QueryControl.ascx" TagName="QueryControl" TagPrefix="uc1" %>
<%@ Register Src="~/Common/ChartControl.ascx" TagName="ChartControl" TagPrefix="uc2" %>
<%@ Register Src="../../Common/SortControls.ascx" TagName="SortControls" TagPrefix="uc3" %>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div id="tabnav">
        <ul>
            <li><a href="hospitalAmountSubsidy.aspx">未发放补助</a> </li>
            <li class="active"><a href="javascript:void(0)">未提交审核</a></li>
             <li><a href="hospitalUnPending.aspx">待审核补助</a></li>
            <li><a href="hospitalPended.aspx">已审核补助</a></li>
            <li><a href="HospitalAmountSubsidyed.aspx">医院已确认</a></li>
            <%--<li><a href="hospitalAmountSubsidyStatistics.aspx">已发补助统计</a></li>--%>
        </ul>
    </div>
    <div id="tabcontent">
        <table class="querylist">
            <tr>
                <td>
                    <table class="querylist">
                        <tr>
                            <td align="right">
                                <asp:Label ID="labArea" runat="server" Text="所在地区："></asp:Label>
                            </td>
                            <td align="left">
                                <asp:DropDownList ID="ddlCity" runat="server">
                                </asp:DropDownList>
                            </td>
                            <td align="right">
                                医院名称：
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtHospitalname" MaxLength="25" runat="server"></asp:TextBox>
                            </td>
                            <td align="right">
                                结算单名称：
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtSubsidyName" MaxLength="50" runat="server"></asp:TextBox>
                            </td>
                            <td align="right">
                                &nbsp;
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtStratTime" runat="server" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd',readOnly:true})"
                                    Width="63px"></asp:TextBox>-<asp:TextBox ID="txtEndTime" runat="server" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd',readOnly:true})"
                                        Width="63px"></asp:TextBox>
                            </td>
                        </tr>
                    </table>
                </td>
                <td width="100px">
                    <asp:Button ID="btnQuery" runat="server" Text="查询" CssClass="searchbtn" SkinID="search"
                        ToolTip="点击查询符合条件的数据" OnClick="btnQuery_Click" TabIndex="99" />
                </td>
            </tr>
        </table>
    </div>
    <asp:GridView ID="gvwDetail" CssClass="mainlist" runat="server" AutoGenerateColumns="False"
        EmptyDataText="暂无有效的信息！">
        <Columns>
            <asp:TemplateField HeaderText="序号">
                <ItemTemplate>
                    <%# Container.DataItemIndex + 1 + AspNetPager1.PageSize * (AspNetPager1.CurrentPageIndex - 1)%></ItemTemplate>
                <HeaderStyle Width="30px" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="结算单名称">
                <ItemTemplate>
                    <a href="#" onclick="javascript:showPopWin('查看处方单','SubsidyDetailShow.aspx?id=<%# Eval("SubsidyID")%>&id1=0',900,450, null,true,true)">
                        <asp:Label ID="Label1" runat="server" Text='<%# Eval("SubsidyName")%>'></asp:Label></a>
                    <%-- <asp:LinkButton ID="lbnDetail" runat="server" CommandName="SHospitalName" CommandArgument='<%# Eval("SubsidyID")%>'><%# Eval("SHospitalName")%></asp:LinkButton>--%>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField HeaderText="医院名称" DataField="SHospitalName" />
             <asp:BoundField DataField="SsumAmount" HeaderText="结算单总金额" ReadOnly="True" />
            
            <asp:BoundField DataField="Amount" HeaderText="应补助金额" ReadOnly="True" />
            <asp:BoundField DataField="PSbsidyAmount" HeaderText="已补助金额" ReadOnly="True" />
           <asp:BoundField DataField="SubsidyAmount" HeaderText="本次补助金额" ReadOnly="True" />
            <asp:TemplateField HeaderText="备注">
                <ItemTemplate>
                    <%#Eval("Remark")%>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField>
                <HeaderTemplate>
                    <input id="addTable_chkAll" name="chkAll" type="checkbox" onclick="SelectAllCheckboxes(this,'<%=gvwDetail.ClientID %>','addTable_chkAll'); " />
                </HeaderTemplate>
                <ItemTemplate>
                    <input type="checkbox" name="checkbox1" id="checkbox1" value='<%#Eval("SubsidyID")%>'
                        onclick="chkChecked(this,'<%=gvwDetail.ClientID %>','addTable_chkAll');" />
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
    </asp:GridView>
    <div class="page">
        <webdiyer:AspNetPager ID="AspNetPager1" runat="server" OnPageChanged="AspNetPager1_PageChanged">
        </webdiyer:AspNetPager>
    </div>
    <div class="listip">
        <ul>
            <li>提示:<span>&nbsp; 选择需要发放补助的医院，在补助金额输入框中输入金额点击“保存” 按钮进行保存。</span></li>
        </ul>
    </div>
    <div class="listctrl">
        &nbsp;
        <hz:HzButton ID="btnCheck" runat="server" Text="提交等待审核" CssClass="btn" 
            ToolTip="审核" onclick="btnCheck_Click" OperateType="提交结算单" ModuleNo="补助管理" AttributeToControl="Enabled"  />
        <hz:HzButton ID="btnDel" runat="server" Text="删除" CssClass="btn" 
            ToolTip="删除" onclick="btnDel_Click" OperateType="删除结算单" ModuleNo="补助管理" AttributeToControl="Enabled" />
    </div>
</asp:Content>
